﻿@using www.Controllers
@model www.Core.Contract.DataContract.RelaxPhotoDataContract
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script>
    $(document).ready(function () {

        if ($(window).width() <= 640) {
            $('#comment').css({ width: 320 });

        }
        $('.fb-comments').attr('data-width', $('#comment').width());
    });

</script>
<div class="photodetail">
    @if (Model != null)
    {
        <div class="personinfo">
            <div class="photo-left">
                <h3><b>@Model.Name</b></h3>
            </div>
            <div class="photo-right">
                <div class="row">
                    <i>@Utility.GetResource.GetResouceValue(Session["Culture"], "lblPostby"): @Model.UserName</i>
                </div>
                <div class="row">
                    <i>@Utility.GetResource.GetResouceValue(Session["Culture"], "lblTimeView"): @(Model.View * 2 )</i>
                </div>
            </div>
        </div>
        <div class="like">
            <div class="photo-left">

                <a href="https://twitter.com/share?count=data-count" class="twitter-share-button" data-url="http://relax2s.com/Home/PhotoDetail/@Session["Culture"]/@Model.Id/@Model.Tag" data-text="Dragon infomation" data-via="Dragon_hy"></a>

                <div class="g-plusone" data-annotation="inline" data-width="60"></div>
                <script type="IN/FollowCompany" data-id="http://relax2s.com" data-counter="right"></script>
                <script type="IN/Share" data-url="http://relax2s.com" data-counter="right"></script>
                <div class="fb-like" data-href="http://relax2s.com/Home/PhotoDetail/@Session["Culture"]/@Model.Id/@Model.Tag" data-width="200" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div>
            </div>
            <div class="photo-right">
                <div class="link">
                    @Html.ActionLink("<< Back", "Back", "Home", new { cul = Session["Culture"], id = Model.Id }, new { }) &nbsp;&nbsp;&nbsp;
                   @Html.ActionLink("Next >>", "Next", "Home", new { cul = Session["Culture"], id = Model.Id }, new { })
                </div>
            </div>
        </div>
        <div class="photodetailimg">
            @Html.Partial("DetailPhotoPartial", Model)
        </div>
        <div class="row">
            <a href="https://twitter.com/share?count=data-count" class="twitter-share-button" data-url="http://relax2s.com/Home/PhotoDetail/@Session["Culture"]/@Model.Id/@Model.Tag" data-text="Dragon infomation" data-via="Dragon_hy"></a>

            <div class="g-plusone" data-annotation="inline" data-width="60"></div>
            <script type="IN/FollowCompany" data-id="http://relax2s.com" data-counter="right"></script>
            <script type="IN/Share" data-url="http://relax2s.com" data-counter="right"></script>
            <div class="fb-like" data-href="http://relax2s.com/Home/PhotoDetail/@Session["Culture"]/@Model.Id/@Model.Tag" data-width="200" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div>
        </div>
        <div class="coment-fb" id="comment">
            <div class="fb-comments" data-href="http://relax2s.com/Home/PhotoDetail/@Session["Culture"]/@Model.Id/@Model.Tag" data-numposts="10" data-colorscheme="light"></div>
        </div>
    }
    else
    {
        <span>@Utility.GetResource.GetResouceMessage(Session["Culture"], "lblEmpty")</span>
    }
</div>
